package com.wz.jiangsu.main;

import lombok.extern.slf4j.Slf4j;

import java.util.Arrays;
import java.util.stream.Collectors;

/**
 * @program: wz
 * @author: wangzhou
 * @create: 2024-11-06 14:44
 * @description:
 **/
@Slf4j
public class TestA {
    public static void main(String[] args) {
        String str = ",25.6.117.1,,ssss";
        String[] split = str.split(",");
        for (String s : split) {
            log.info(s);
        }

        String str2 = "";
        String collect = Arrays.stream(str2.split(",")).distinct().collect(Collectors.joining(","));
        log.info("信息:{}",collect);
    }
}
